<?php 

class User_Model_Private {
	
	public static function getParam($name, $default = null) {
		$model = new User_Model_Users();
		$user_id = Zen_User::getId();
		$user = $model->select()->getOne("id=$user_id");
		if (! $user) return $default;
		if (! $user['property'] ) return $default;
		$property = unserialize($user['property']) ;
		if (! is_array($property)) return $default;
		if (! isset($property[$name])) return $default;
		return $property[$name];
	}
	
}